package cn.tedu.pet.product.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Accessors(chain = true)
public class OrderAddNewParam implements Serializable {

    @ApiModelProperty(value = "categoryId",required = true,example = "3")
    private Long categoryId;

    @ApiModelProperty(value = "spuId",required = true,example = "5")
    private Long spuId;

    @ApiModelProperty(value = "skuId",required = true,example = "2")
    private Long skuId;

    @ApiModelProperty(value = "购买数量",required = true,example = "1")
    private Integer number;

    @ApiModelProperty(value = "订单价格",required = true,example = "300.0")
    private Double price;

}
